package tgc.edu.yzy.controller;

import java.text.SimpleDateFormat;

import com.forte.qqrobot.anno.timetask.CronTask;
import com.forte.qqrobot.sender.MsgSender;
import com.forte.qqrobot.timetask.TimeJob;
import com.forte.qqrobot.utils.CQCodeUtil;
/***
 * 开启关闭聊天
 * @author 936642284
 *
 */
@CronTask("0 5 0,18 * * ? ")
public class Timingone implements TimeJob{
	@Override
	public void execute(MsgSender msgSender, CQCodeUtil cqCodeUtil) {
		/*java.util.Date time = new java.util.Date();
		SimpleDateFormat formatter = new SimpleDateFormat("HH");
		String dateString = formatter.format(time);
		switch (dateString) {
		case "00":
			MyqqRobot.tulingNY = true;
			System.out.println("00:聊天开启");
			break;
		case "18":
			MyqqRobot.tulingNY = false;
			System.out.println("18:聊天关闭");
			break;
		case "23":
			MyqqRobot.tulingNY = true;
			System.out.println("23:聊天开启");
			break;
		case "17":
			MyqqRobot.tulingNY = false;
			System.out.println("17:聊天关闭");
			break;
		default:
			break;
		}*/
		
	}
}
